// https://vuex.vuejs.org/zh-cn/intro.html
// make sure to call Vue.use(Vuex) if using a module system
import Vue from 'vue';
import Vuex from 'vuex';

import counter from './modules/counter';
import fetch from './modules/fetch';
import search from './modules/search';
import category from './modules/category';
import shoplist from './modules/shoplist';
import cart from './modules/cart';
import orderlist from './modules/orderlist';

Vue.use(Vuex);

export default new Vuex.Store({
  modules: {
    counter,
    fetch,
    search,
    category,
    shoplist,
    cart,
    orderlist
  }
});
